/**
 * 
 */
package mycsveditor.editors;

public final class JavaCallNames {

	private String pkg;

	private String clazz;

	private String method;

	public JavaCallNames(String callString) {
		String[] split = callString.split(",");
		String clazzPath = split[0];
		method = "";
		if (split.length == 2)
			method = split[1];
		int dotPosition = clazzPath.lastIndexOf('.');
		if (dotPosition == -1) {
			pkg = "";
			clazz = clazzPath;
		} else {
			pkg = clazzPath.substring(0, dotPosition);
			clazz = clazzPath
					.substring(dotPosition + 1, clazzPath.length());
		}
	}

	public String getPkg() {
		return pkg;
	}

	public String getClazz() {
		return clazz;
	}

	public String getMethod() {
		return method;
	}
}